import { Token } from '@/interface/token';
import { user } from '@/interface/user';

export type LoginAction =
    | {
          type: 'login/getToken';
          payload: Token;
      }
    | {
          type: 'logout/removeToken';
          payload: string;
      };

export type userAction =
    | {
          type: 'user/getUserInfo';
          payload: user;
      }
    | {
          type: 'user/getUserLog';
          payload: any;
      };
